{include file='header.tpl'}

	<h2>{$aLang.search_results}: <span>{$aReq.q|escape:'html'}</span></h2>
	<ul class="block-nav">
	{foreach from=$aRes.aCounts item=iCount key=sType name="sTypes"}
		<li {if $aReq.sType == $sType}class="active"{/if}>
			<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_SEARCH}/{$sType}/?q={$aReq.q|escape:'html'}">
				{$iCount} 
				{if $sType=="topics"}
					{$aLang.search_results_count_topics}
				{elseif $sType=="comments"}
					{$aLang.search_results_count_comments}
				{/if}
			</a>
		</li>				
	{/foreach}
	</ul>
	<br />

	{if $bIsResults}
		{if $aReq.sType == 'topics'}
			{include file='topic_list.tpl'}
		{elseif $aReq.sType == 'comments'}
			{include file='comment_list.tpl'}
		{/if}
	{else}
		{$aLang.search_results_empty}
	{/if}

{include file='footer.tpl'}